package com.xgll.modules.api.controller;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.xgll.common.annotation.IgnoreAuth;
import com.xgll.modules.api.service.ApiOrderGoodsService;


@Controller
@RequestMapping("/api/commentSpecifition")
public class ApiOrderGoodsController {
	@Autowired
	private ApiOrderGoodsService orderGoodsService;
	
	@IgnoreAuth
	@RequestMapping("/specifition")
	@ResponseBody
	public List<Map<String,Object>> commentSpecifition(@RequestParam("goodsId") Integer goods_id,@RequestParam("userId") Integer user_id){
		return orderGoodsService.commentSpecifition(goods_id,user_id);
	}
}
